<?php foreach ($data as $order): ?>
    <li>
        <p class="daixao_title clear_fl">
            <span class="lf daixiao_name">代销单号：<?= $order->out_sn ?></span>
            <span class="rt daixiao_status">
                <?php if($order->op_state == 1): ?>
                    代销中
                <?php elseif($order->op_state == 2): ?>
                    代销成功
                <?php else: ?>
                    代销失败
                <?php endif ?>
            </span>
        </p>
        <p class="daixiao_prod">
            <img src="<?= $order->sellGoods->img ?>">
            <span><?= $order->sellGoods->goods_name ?></span>
        </p>
        <p class="daixiao_count">消耗能源分 <?= $order->score ?></p>
    </li>
<?php endforeach ?>